<?php
/**
 * Func   后台首页
 */
defined('IN_YuLin') || exit('NO PERMIT!');
include_once (ROOT_PATH.'lib/api_common/statistic.inc.php');
$res = array(
    'status' => 'success',
    'msg'    => '',
);
$post = json_decode($_POST['data']);
switch ($post->operation){
    case 'getSourceData':
        $param = array(
            'search_btime' => $post->search_btime,
            'search_etime' => $post->search_etime,
        );
        $res = getSourceData($param);
        break;
    default:
        break;
}
echo json_encode($res);

